package com.yy.wga.pay.service.client.request.alipay;

import com.yy.wga.pay.service.client.request.BaseTransferRequest;
import com.yy.wga.pay.service.client.response.alipay.AliPayTransferResponse;
import com.yy.wga.pay.service.client.request.BaseTransferRequest;
import com.yy.wga.pay.service.client.response.alipay.AliPayTransferResponse;
import com.yy.wga.pay.service.client.request.BaseTransferRequest;
import com.yy.wga.pay.service.client.response.alipay.AliPayTransferResponse;
import com.yy.wga.pay.service.client.request.BaseTransferRequest;
import com.yy.wga.pay.service.client.response.alipay.AliPayTransferResponse;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
* Created by gc on 2021/8/30.
*
* @author : gc
*
* Description: 支付宝转账接口请求参数
**/
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class AliPayTransferRequest extends BaseTransferRequest<AliPayTransferResponse> {

    private static final long serialVersionUID = -7027487347217226590L;

    /**
     * 应用id
     */
    private String appId;
    /**
     * 订单编号
     */
    @NotNull(message = "订单编号不能为空")
    private String orderNo;

    /**
     * 订单金额信息
     */
    private BigDecimal amount;

    /**
     * 转账标题
     */
    private String orderTitle;

    /**
     * 收款方打款方式 1、会员ID 2、支付宝登录号
     */
    private Integer identityType;

    /**
     * 收款方会员id，支付宝会员ID打款方式时传递
     */
    private String aliPayUserId;

    /**
     * 收款方账号，支付宝登录号打款方式时传递
     */
    private String withdrawAccount;

    /**
     * 收款方真实姓名，支付宝登录号打款方式将校验名字
     */
    private String name;

    /**
     * 打款备注
     */
    private String remark;
}
